package com.heu.blood.dict.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;

/**
 * @author lyj
 * @email lyj@heu.com
 * @date 2024-06-29 00:26:49
 * 字典模块的异常枚举类--全部以11开头
 */
public enum DictExceptionEnum implements BaseErrorInfoInterface {
    SAME_CODE_PARENT_CODE("1101","父编码同当前编码相同"),
    EXIST_CODE("1102","已经存在相同的编码");

    DictExceptionEnum(String resultCode,String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;
    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
